﻿@** Copyright 2013 Seven Spikes Ltd. All rights reserved. (http://www.nop-templates.com)
* http://www.nop-templates.com/t/licensinginfo
*@

@model Nop.Web.Models.Catalog.ProductDetailsModel.AddToCartModel

@if(Model.CustomerEntersPrice)
{
    <div class="customer-entered-price">
        <div class="price-input">
            @Html.LabelFor(model => model.CustomerEnteredPrice, new { @class = "enter-price-label" }, ":")
            @*round price*@
            @Html.TextBox("CustomerEnteredPrice", Convert.ToInt32(Math.Ceiling(Model.CustomerEnteredPrice)), new { @class = "enter-price-input" })
        </div>
        <div class="price-range">
            @Model.CustomerEnteredPriceRange
        </div>
    </div>
}

<div class="add-to-cart">
    @if (!Model.DisableBuyButton)
    {
        @Html.LabelFor(model => model.EnteredQuantity, new { @class = "qty-label" }, ":")
        @Html.TextBoxFor(model => model.EnteredQuantity, new { @class = "qty-input" })
    }
    @if (!Model.DisableBuyButton)
    {
         @Html.Action("GetMiniProductDetailsViewAddProductToCartAjaxButton", "NopAjaxCart", new { ProductId = Model.ProductId })
    }
</div>